<!DOCTYPE html>
<html lang="zh">
<head>
	<meta charset="UTF-8">
	<title>Title</title>
</head>
<body>
<button>测试1</button>
<button>测试2</button>
<button>测试3</button>
</body>
</html>
<script type="text/javascript">
 var btns=document.querySelectorAll("button");
 for (var i = 0; i < btns.length; i++) {
	 console.log(i);
	 (function (i) {
		 console.log(i)
		 btns[i].onclick=function () {
			 console.log(i)
		 }
	 })(i);
 }
 let p={}
 // p.getPrototypeOf()
</script>
